package com.ytjj.qmyx.supplychain.common.enums;


public enum CebOrderSendStatusEnums {
    UN_SEND(0, "未推送"),
    SENDING(1, "推送中"),
    SUCCESS(2, "推送成功"),
    FAIL(3, "推送失败"),
    ;
    /**
     * 状态
     */
    private Integer status;
    /**
     * 状态描述
     */
    private String statusDesc;

    CebOrderSendStatusEnums(Integer status, String statusDesc) {
        this.status = status;
        this.statusDesc = statusDesc;
    }

    public Integer getStatus() {
        return status;
    }

    public String getStatusDesc() {
        return statusDesc;
    }

    public static String getStatusDesc(Integer status) {
        CebOrderSendStatusEnums[] values = CebOrderSendStatusEnums.values();
        for (CebOrderSendStatusEnums value : values) {
            if(value.status.equals(status)) {
                return value.statusDesc;
            }
        }
        return null;
    }
}
